package grape.attend.service.user.api;

import grape.attend.service.user.po.UserLeave;
import grape.attend.service.user.po.UserLeaveApplication;
import grape.common.service.common.IBaseService;

import java.util.List;

/**
 * <p>
 * 用户请/补假单表 服务类
 * </p>
 *
 * @author yangwei
 * @since 2020-05-29
 */
public interface IUserLeaveApplicationService extends IBaseService<UserLeaveApplication> {

    /**
     * 添加用户请假申请单
     * @param userLeaveApplication
     * @param userLeaves
     * @param isSubmitApprove true发起申请，false 暂存
     * @return
     */
    UserLeaveApplication addUserLeaveApplication(UserLeaveApplication userLeaveApplication, List<UserLeave> userLeaves,Boolean isSubmitApprove);

    /**
     * 更新用户请假申请单
     * @param userLeaveApplication
     * @param userLeaves
     * @param isSubmitApprove
     * @return
     */
    UserLeaveApplication updateUserLeaveApplication(UserLeaveApplication userLeaveApplication, List<UserLeave> userLeaves,Boolean isSubmitApprove);


}
